
Page({
	data: {
		bookData:[]
	},
	onLoad: function(query) {
		// var query = JSON.parse(query);
		var _this = this;
		wx.request({
		  url: 'https://api.douban.com/v2/book/'+query.id,
		  // url: 'https://api.douban.com/v2/book/1003078',
		  success: function(res) {
		  	console.log(res);
		    _this.setData({
		    	bookData:res.data
		    })
		    console.log(_this.data.bookData);
		  }
		})
	}
})